#pragma once
#include "Actor.h"

namespace mini
{
	struct TessellationBufferType
	{
		float tessellationAmount;
		CPoint3F padding;
	};

	class CTessellation : public CActor
	{
	public:
		CTessellation();
		virtual ~CTessellation();
		virtual void update(float fDeltaTime) override;

		void updateHullData(const std::string& name, void* pData);
		void updateDomainData(const std::string& name, void* pData);

	private:
		std::list<CMaterialUnit*>	mMaterials;
		CGPUBuffer* mpTessellationBuffer = nullptr;
	};
}